package com.kitty.kittyjedis;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.Transaction;

/**
 * @Description
 * @Author SHEN
 * @Date 2021/4/5
 */
public class JedisTest {

    private static final String HOST = "192.168.191.4";

    private static final int PORT = 6379;

    private static final String PASS = "123456";

    public static void main(String[] args) {

        Jedis jedis = new Jedis(HOST,PORT);
        jedis.auth(PASS);

        Transaction multi = jedis.multi();



        System.out.println(jedis.ping());
    }

}
